package basics.proxy.cglibProxy;

import basics.proxy.SmsService;
import basics.proxy.staticProxy.SmsServiceImpl;

/**
 * @author jiangwz
 * @create 2021/3/10.
 */
public class Main {

    public static void main(String[] args){
        // 要传实现类,不能传接口
        SmsService proxy = (SmsService) CglibProxyFactory.getProxy(SmsServiceImpl.class);
        proxy.send("12212");
    }
}
